package main

// 392 判断子序列
// https://leetcode.cn/problems/is-subsequence
func isSubsequence(s string, t string) bool {
	sByte := []byte(s)
	tByte := []byte(t)
	i, j := 0, 0
	for i < len(sByte) && j < len(tByte) {
		if sByte[i] == tByte[j] {
			i++
		}
		j++
	}
	return i == len(sByte)
}
